package com.wms.model;

import java.util.List;

/**
 * @author This
 * @version 1.0
 * @date 2019/7/16 22:58
 */
public class PageBean<T> {
    //当前页
    private int currentPage;
    //每页展示条数
    private int pageSize;
    //总记录数
    private int total;
    //数据列表
    private List<T> rows;
    //查询条件
    private String condition;

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", total=" + total +
                ", rows=" + rows +
                ", condition='" + condition + '\'' +
                '}';
    }
}
